import json

file = open('身份证码值对照表.txt', 'r+', encoding='utf-8')
read = file.read()
jsonstr = json.loads(read)
postcard = input("请输入身份证后六位：\n")
for key, val in jsonstr.items():
    if key == postcard:
        print(val)
file.close()
